package user;

import book.BookList;
import operation.IOperation;

/**
 * Created by xiebang
 * Description
 * User:小谢
 * Date:2021-09-16
 * Time:11:10
 */
public abstract class User {
    protected String name;
    protected IOperation[] iOperations;//声明
    public User(String name) {
        this.name = name;
    }
    public abstract int menu();

    public void doOpearation(int choice, BookList bookList){
        this.iOperations[choice].work(bookList);
    }

}
